hotplug/FreeBSD: set network interface MTU to bridge MTU
authorGustau Perez <gustau.perez@gmail.com>
Mon, 20 Apr 2015 07:12:52 +0000 (09:12 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 22 Apr 2015 13:44:05 +0000 (14:44 +0100)
commit1d5614db07b05af81f2f3a78fc563b6e2f3e1389
treeaf1deb85570b8d309d0b805855e45f53f65db638
parent940d148dfc3c50c0aa4f5914ba1641fa4afc7223
hotplug/FreeBSD: set network interface MTU to bridge MTU

On creation time, tap and xnb interfaces are created with an mtu of
1500 bytes, assuming the bridge will have the same value.
Instead, check the bridge mtu and configure the new xnb or
tap interface with the same value.

The tools used are sed and ifconfig, both included on base. No need
to install additional ports (no new dependences).

Signed-off-by: Gustau Perez <gustau.perez@gmail.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.cmapbell@citrix.com>
[ ijc -- clarified title ]
tools/hotplug/FreeBSD/vif-bridge